﻿<phone:PhoneApplicationPage 
    x:Class="PhoneInfo.Page.SoftDetail_Screen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d" d:DesignHeight="768" d:DesignWidth="480" Style="{StaticResource TransitionPageStyle}"
    shell:SystemTray.IsVisible="True">
    <phone:PhoneApplicationPage.Resources>
        <Storyboard x:Name="sto_left">
            <DoubleAnimation Duration="0:0:0.25" 
                             Storyboard.TargetName="img" 
                             Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" 
                             d:IsOptimized="True" />
        </Storyboard>
        <Storyboard x:Name="sto_right">
            <DoubleAnimation Duration="0:0:0.3" 
                             Storyboard.TargetName="img" 
                             Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" 
                             d:IsOptimized="True" />
        </Storyboard>
        <Storyboard x:Name="Storyboard1">
        	<DoubleAnimation Duration="0:0:0.3" To="-480" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="img" d:IsOptimized="True"/>
        </Storyboard>
        <Storyboard x:Name="Storyboard2">
            <DoubleAnimation Duration="0:0:0.3" From="480" To="0" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)" Storyboard.TargetName="img" d:IsOptimized="True"/>
        </Storyboard>
    </phone:PhoneApplicationPage.Resources>

    <!--LayoutRoot 是包含所有页面内容的根网格-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <!--ContentPanel - 在此处放置其他内容-->
        <Grid x:Name="ContentPanel" Margin="0" Grid.RowSpan="2">
            <Image Margin="0" Name="img" Stretch="None">
                <Image.RenderTransform>
                    <CompositeTransform x:Name="transform" />
                </Image.RenderTransform>
                <toolkit:GestureService.GestureListener>
                    <toolkit:GestureListener 
                        DragDelta="OnDragDelta" Hold="OnHold" DoubleTap="GestureListener_DoubleTap" DragCompleted="GestureListener_DragCompleted"
                        PinchStarted="OnPinchStarted" PinchDelta="OnPinchDelta"  />
                </toolkit:GestureService.GestureListener>
            </Image>
        </Grid>
    </Grid>
 
</phone:PhoneApplicationPage>
